From 33718a77fdebc20cc10f7b9dd543a4c0c9be62a4 Mon Sep 17 00:00:00 2001 From: "Ian.Campbell@xensource.com" Date: Wed, 22 Feb 2006 15:13:08 +0000 Subject: [PATCH] Allow Xen to truncate x86_32 segment limits to the correct value rather than hardcoding them in each guest kernel. Signed-off-by: Ian Campbell --- linux-2.6-xen-sparse/arch/i386/kernel/head-xen.S | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/linux-2.6-xen-sparse/arch/i386/kernel/head-xen.S b/linux-2.6-xen-sparse/arch/i386/kernel/head-xen.S index f96c02ca45..2e13e8d833 100644 --- a/linux-2.6-xen-sparse/arch/i386/kernel/head-xen.S +++ b/linux-2.6-xen-sparse/arch/i386/kernel/head-xen.S @@ -119,17 +119,10 @@ ENTRY(cpu_gdt_table) .quad 0x0000000000000000 /* 0x53 reserved */ .quad 0x0000000000000000 /* 0x5b reserved */ -#ifdef CONFIG_X86_PAE - .quad 0x00cfbb00000067ff /* 0x60 kernel 4GB code at 0x00000000 */ - .quad 0x00cfb300000067ff /* 0x68 kernel 4GB data at 0x00000000 */ - .quad 0x00cffb00000067ff /* 0x73 user 4GB code at 0x00000000 */ - .quad 0x00cff300000067ff /* 0x7b user 4GB data at 0x00000000 */ -#else - .quad 0x00cfbb000000c3ff /* 0x60 kernel 4GB code at 0x00000000 */ - .quad 0x00cfb3000000c3ff /* 0x68 kernel 4GB data at 0x00000000 */ - .quad 0x00cffb000000c3ff /* 0x73 user 4GB code at 0x00000000 */ - .quad 0x00cff3000000c3ff /* 0x7b user 4GB data at 0x00000000 */ -#endif + .quad 0x00cfbb000000ffff /* 0x60 kernel 4GB code at 0x00000000 */ + .quad 0x00cfb3000000ffff /* 0x68 kernel 4GB data at 0x00000000 */ + .quad 0x00cffb000000ffff /* 0x73 user 4GB code at 0x00000000 */ + .quad 0x00cff3000000ffff /* 0x7b user 4GB data at 0x00000000 */ .quad 0x0000000000000000 /* 0x80 TSS descriptor */ .quad 0x0000000000000000 /* 0x88 LDT descriptor */ -- 2.30.2